<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" >
    <title>Title</title>
</head>
<body>

<a href="/day13/tzadd">添加</a>
<form>


<table border="1" >
    <tr>
        <td>id</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>性别</td>
        <td>手机号</td>
        <td>地址</td>
        <td>操作</td>
    </tr>
    <tr th:each="user:${list.getList()}">
        <td th:text="${user.getId()}"></td>
        <td th:text="${user.getName()}"></td>
        <td th:text="${user.getAge()}"></td>
        <td th:text="${user.getSex()}"></td>
        <td th:text="${user.getSjh()}"></td>
        <td th:text="${user.getDz()}"></td>
        <td >
            <a th:href="@{/day13/hx(id=${user.getId()})}">修改</a>
            <a th:href="@{/day13/del(id=${user.getId()})}">删除</a>
        </td>
    </tr>
</table>    
    <button type="button"  ><a href="/day13/findAll?pageNum=1">首页</a></button>
    <span th:each="n:${list.navigatepageNums}">
         <button type="button"  >
             <a th:href="@{/day13/findAll(pageNum=${n})}">
                 <span th:text="${n}"></span>
             </a>
         </button>
    </span>
    <button type="button"  ><a th:href="@{/day13/findAll(pageNum=${list.pages})}">尾页</a></button>
</form>
</body>
</html>